package com.bj.disc.ui.splash.fragment

import android.os.Bundle
import com.ai3d.rfid.base.fragment.BaseVmVdbFragment
import com.ai3d.rfid.databinding.FragmentSplashBinding
import com.bj.disc.ui.login.activity.LoginActivity
import com.bj.disc.ui.splash.vm.SplashViewModel


/**
 * @ProjectName : Kolb
 * @Author : weijinsong
 * @Time : 2022/12/30 14:37
 * @Description : 启动页面
 */
class SplashFragment : BaseVmVdbFragment<SplashViewModel, FragmentSplashBinding>() {
    companion object {
        private const val TAG = "SplashFragment"
        var INIT_SDK_KEY = "init"

    }
    private var count=0

    override fun initView(savedInstanceState: Bundle?) {
    }

    override fun createObserver() {
      gotoMain()
    }


    override fun onResume() {
        super.onResume()
        mViewModel.onResume()
    }

    override fun onPause() {
        super.onPause()
        mViewModel.onPause()
    }

    /**
     * 显示隐私弹窗
     */

    private fun gotoUserAgreement() {
//        activity?.let { H5Activity.startH5Activity(it, USER_AGREEMENT_PATH) }
    }

    private fun gotoPrivacyPolicy() {
//        activity?.let { H5Activity.startH5Activity(it, PRIVACY_POLICY_PATH) }
    }

    private fun gotoLogin() {
    }

    private fun gotoMain() {
        LoginActivity.startLoginActivity(requireActivity())
    }


}